package holdobject;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.LinkedList;

public class ForEachCollection {
    public static void main(String[] args) {
        Collection<String> cs=new LinkedList<>();//容器
        Collections.addAll(cs,"Take the long way home".split(" "));
        for (String s:cs){
            System.out.print("'"+s+"'");
        }
    }
}
